<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Places.aspx.cs" Inherits="Places" Title="Untitled Page" %>
<%@ Register Src="~/LocationTileControl.ascx" TagPrefix="decavuc" TagName="LocationTile" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/PagingControl.ascx" TagPrefix="decavuc" TagName="PagingControl" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeaderPlaceholder" Runat="Server">

    <style type="text/css">
        .SearchIndex
        {
        }
        
        .SearchIndex LI
        {
            display:inline;
        }
    </style>
    
    <link rel="stylesheet" type="text/css" href="Styles/PaginationStyle.css" />

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageBodyPlaceholder" Runat="Server">
    <div style="float:right;">
        <a href="javascript:void(0)" runat="server" id="showPlaceWindowLink">Find Place</a>
    </div>
    <h1 runat="server" id="pageHeader"></h1>
    <div id="findPlaceWindow" class="DropDownWindow AddFriendWin" runat="server">
        <div class="WinBody" runat="server" id="findPlaceBody">
            <label for="<%= findPlaceTextBox.ClientID %>">I'm looking for...</label>
            <asp:TextBox runat="server" ID="findPlaceTextBox" Width="400"/>
            <cc1:TextBoxWatermarkExtender runat="server" TargetControlID="findPlaceTextBox" WatermarkCssClass="TextBoxWatermark" WatermarkText="Venue, Address or Intersection" />
            <asp:Button runat="server" ID="findPlaceButton" Text="Find" OnClick="FindPlaceButton_Click" />
        </div>
    </div>

    <ul class="UnderHeaderMenu">
        <li class="Selected" runat="server" id="namedPersonPlacesMenuItem"><a href="#" runat="Server" id="namedPersonPlacesHref"></a></li>
        <li runat="server" id="yourPlacesMenuItem"><a runat="server" id="yourPlacesHref" href="#">Places you've been</a></li>
        <li runat="server" id="allPlacesMenuItem"><a href="Places.aspx">All Places</a></li>
    </ul>

    <cc1:AnimationExtender ID="AnimationExtender1" runat="server" TargetControlID="showPlaceWindowLink">
        <Animations>
            <OnClick>
                <Sequence AnimationTarget="findPlaceWindow">
                    <StyleAction Attribute="display" Value="none" AnimationTarget="showPlaceWindowLink" />
                    <StyleAction Attribute="display" Value="block" />
                    <Resize Height="55px" Unit="px" Duration=".25" />
                    <StyleAction Attribute="display" Value="block" AnimationTarget="findPlaceBody" />
                </Sequence>
            </OnClick>
        </Animations>
    </cc1:AnimationExtender>
    
    <div runat="server" id="placesListDiv">
        <asp:Repeater runat="server" ID="placesRepeater">
            <HeaderTemplate>
                <ul class="SearchResults">
            </HeaderTemplate>
            <ItemTemplate>
                <li class="<%# HasNextPage ? "" : "DisabledPage" %>"><decavuc:LocationTile runat="server" Location="<%# Container.DataItem %>" /></li>
            </ItemTemplate>
            <FooterTemplate>
                </ul>
            </FooterTemplate>
        </asp:Repeater>

        <decavuc:PagingControl runat="server" id="paging" />
    </div>
    <div runat="server" id="noPlacesDiv" class="StatusRibbon" visible="false"></div>

</asp:Content>

